﻿using FreeSql.DataAnnotations;
using IMES.Common.Dtos;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IMES.Common.Domain.DariusModel
{
    /// <summary>
    ///用户管理
    /// </summary>
    public class Users:Audit
    {
        [Column(IsIdentity = true, IsPrimary = true)]
        public int UsersId { get; set; }
        /// <summary>
        /// 账号
        /// </summary>
        public string? UserAccount { get; set; }
        /// <summary>
        /// 密码
        /// </summary>
        public string? UserPwd { get; set; } = "123456";
        /// <summary>
        /// 姓名
        /// </summary>
        public string? UsersName { get; set; }
        /// <summary>
        /// 性别
        /// </summary>
        public int Gender { get; set; }
        /// <summary>
        /// 头像
        /// </summary>
        public string? UsersImage { get; set; }
        /// <summary>
        /// 角色
        /// </summary>
        public int RoleId { get; set; }
        /// <summary>
        /// 注册时间
        /// </summary>
        public DateTime? UsersDate { get; set; } = DateTime.Now;
        /// <summary>
        /// 父级id
        /// </summary>
        public int Pid { get; set; }
    }
}
